#ifndef CONSTANT_TEXTURE_H
#define CONSTANT_TEXTURE_H
#include<QVector3D>
#include<texture.h>
class constant_texture:public texture
{
public:
    constant_texture(){}
    constant_texture(QVector3D c):color(c){}
    virtual QVector3D value(float u ,float v,const QVector3D&p)const{
        return color;
    }
private:
    QVector3D color;
};

#endif // CONSTANT_TEXTURE_H
